package com.sondertara.joya.core.po;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.OffsetDateTime;
import java.util.Date;

/**
 * @author : huangxiaohu
 * @date : 2023/01/17 15:27
 */
@Data
@Entity
@Table(name = "tara_job_instance")
public class TaraJobInstancePo implements Serializable {

    private static final long serialVersionUID = 8038026142231867224L;
    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "job_id")
    private Long jobId;

    /**
     * job运行状态
     */
    @Column(name = "status")
    private Integer status;

    /**
     * 错误原因
     */
    @Column(name = "error_msg")
    private String errorMsg;

    /**
     * job执行结果
     */
    @Column(name = "job_result")
    private String jobResult;


    /**
     * 执行器
     */
    @Column(name = "executor")
    private String executor;

    /**
     * 执行组
     */
    @Column(name = "trigger_ins_id")
    private Long triggerInsId;

    /**
     * 执行时间
     */
    @Column(name = "execute_time")
    private Date executeTime;

    @Column(name = "schedule_time")
    private Date scheduleTime;

    /**
     * 结束时间
     */
    @Column(name = "end_time")
    private Date endTime;


}
